using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nop.Core.ApiDataModel
{
	public class ListResult<T> : ApiResult
	{
		public List<T> Items { get; set; }

		public ListResult()
		{
			Success = false;
			Items = new List<T>();
		}

		public ListResult(IEnumerable<T> values):this()
		{
			Items.AddRange(values);
		}

		public ListResult(T value)
			: this()
		{
			Items.Add(value);
		}
	}
}
